

import service from "@/service";



// 查看轮播图列表
export const bannerinapi = () => service({
    url: "/banner/list",  //git 请求 // method: "post", data,   
});
// 添加轮播图
export const bannerpushapi = (data) => service({
    url: "/banner/add",
    method: "post",
    data
})

// 删除轮播图
export const handldeleteickapi = (bannerid: string) => service({ 
    url: "/banner/delete", 
    params: 
    { 
        bannerid:bannerid
    } 
})


//  修改轮播图  /banner/updateFlag

// export const Modifybannerapi = (bannerid: string, flag: String) => service({
//     url: "/banner/updateFlag",
//     methods: "post",
//     params: { bannerid, flag }
// })
// 修改轮播图 
export const Modifybannerapi = (bannerid: string, flag: boolean) => service.post("/banner/updateFlag", { bannerid, flag });